package com.foreknow.service;

import com.foreknow.model.Guestbook;

import java.sql.SQLException;
import java.util.List;

public interface GuestbookService {
    /**
     * 保存信息
     * @param guestbook
     * @return
     */
    public boolean save(Guestbook guestbook);

    /**
     * 删除
     * @param id
     * @return
     */
    public boolean delete(int id);

    /**
     * 修改
     * @param guestbook
     * @return
     */
    public boolean update(Guestbook guestbook);

    /**
     * 根据id查询
     * @param id
     * @return
     * @throws SQLException
     */
    public Guestbook Idquery(int id) ;

    /**
     * 修改方法
     * @param guestbook
     * @return
     */
    public  boolean updates(Guestbook guestbook);
}
